package wator.controller;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Vector;

import wator.model.AgentConfiguration;
import wator.model.AvailableAgents;
import wator.model.Simulation;
import wator.model.topologies.TorusTopology;
import wator.util.BatchSimulationConfiguration;
import wator.util.GnuplotWritter;
import wator.util.SimulationRecorder;
import wator.util.Tools;
import wator.view.UI;
import wator.view.commandline.CommandlineUI;


/**
 * Main class. Initializes the model and the view and display the user
 * interface.
 * 
 * @see #main(String[])
 */
public class Main {

	/**
	 * This is the main runner method.
	 * 
	 * @param args no command line arguments expected
	 */
	public static void main(String[] args) {
		
		try {
			/*Simulation.getInstance().initialize();
			CommandlineUI.getInstance().initialize();
			System.exit(0);*/		
			
			
			SimulationRecorder rec=new SimulationRecorder(Simulation.getInstance(),"");
			Simulation.getInstance().initialize();
			UI.getInstance().initialize();
			UI.getInstance().show();
			//System.out.println("File Stream closed");
			//rec.delete();

			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
